<?php
/**
 * @Author: xuzhiyi
 * @Date:   2016-02-01 10:23:14
 * @Last Modified by:   xuzhiyi
 * @Last Modified time: 2016-02-16 00:41:39
 * ------------------------------------------------ *
 * 修改商城配置 *
 * ------------------------------------------------ */ 

namespace Admin\Controller;

class ConfigsController extends CommonController {
    public function index(){
    	if(!empty($_POST)){
    		
    		$c=D('Configs')->saveConfigs();
    		
    		if($c){				
				echo "<script>parent.callback('设置成功保存！',1)</script>";
				return;
			}		
			echo "<script>parent.callback('设置保存失败！',0)</script>";
			return;
    	}
    	$this->assign('configs',D('Configs')->getConfigsTable());
        $this->display();
    }
}